home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Jul 89 / W0054-Install CoHandler P-Jul89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.3 KB  |  37 lines  |  [TEXT/GEOL]

  1. Item    8506615                         11-July-89        20:31
  2.  
  3. From:   D2215                           Dac SW, Wilma Blair, PRT
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. cc:     MACDTS                          Macintosh Developer Technical Supt.
  8.  
  9. Sub:    Install CoHandler Problem
  10.  
  11. I am having a problem with using InstallCohandler.
  12.  
  13. When I call InstallCohandler for a view, everything works fine except that
  14. the document and application menus are not enabled.  The view's fNextHandler is
  15. NIL so nothing gets back to the document or application.
  16.  
  17. I end up having to InstallCohandler for the document and also for the
  18. application to enable all of the menus that should be enabled.
  19.  
  20. I also have to Override Free for the view, document and application so that it
  21. calls InstallCoHandler with addit false to remove from the Idle chain.  Then it
  22. calls Inherited Free.  Otherwise, the debugger is entered with a message
  23. stating the handle or Object is already freed.
  24.  
  25. This works ok up until the application is closed.  The it crashes into TMON
  26. with some message about re-entry (only when I have installed the application
  27. into the Idle Chain).
  28.  
  29. What is the proper way to install a view into the Idle Chain so that all of
  30. menus are enabled and nothing crashes when quiting the program?
  31.  
  32. Regards, Les Caudle
  33.  
  34.  
  35.  
  36.  
  37.